/**
 * Created by xuzhihan on 17/3/10.
 */
public class score {
    public static void main(String[] args) {
        int[] scores={1,2,3,45,5,6,6,6,6,3};
        for(int i=0;i<=9;i++){
            System.out.printf("学生成绩：%d%n",scores[i]);
        }
        System.out.println();
        for(int score:scores){
            System.out.printf("学生成绩2 ：%d%n",score);
        }
        System.out.println("..........................................");
        /*二维数组*/
        int [][]cords ={
                {1,2,3},
                {3,4,5}
        };
        for (int x=0;x<cords.length;x++){
            for (int y=0;y<cords[x].length;y++){
                System.out.printf("%2d",cords[x][y]);
            } System.out.println();
        }
        System.out.printf(".........................................%n");
        for (int[] row :cords){
            for( int value :row){
                System.out.printf("%2d",value);
            }
            System.out.println();
        }

    }
}
